gtk4.git
11 years agotooltip: remove unused variable and related g_object_set
Stefan Sauer [Tue, 3 Mar 2015 06:49:38 +0000 (07:49 +0100)]
tooltip: remove unused variable and related g_object_set

We never use the value of has_tooltip. This is a left-over from the refactoring
of gtk_tooltip_run_requery().

11 years agoMSVC Builds: Update icon-browser Projects
Chun-wei Fan [Tue, 3 Mar 2015 06:08:51 +0000 (14:08 +0800)]
MSVC Builds: Update icon-browser Projects

There is a new source file that needs to be built, so fix the projects...

11 years agoMSVC Builds: Improve Build Speed and Debugging
Chun-wei Fan [Tue, 3 Mar 2015 06:07:26 +0000 (14:07 +0800)]
MSVC Builds: Improve Build Speed and Debugging

Use Multiprocessor compilation which can cut down build times by quite a
bit and use the /d2Zi+ flag to have better debugging info being logged to
the .pdb for release builds.

These are only applicable for Visual Studio 2010/2012 and later.

11 years agogtkswitch.c: Fix Build on C89 Compilers
Chun-wei Fan [Tue, 3 Mar 2015 04:14:24 +0000 (12:14 +0800)]
gtkswitch.c: Fix Build on C89 Compilers

This file now uses round(), which was not available until C99, so include
fallback-c89.c instead of math.h, which includes math.h and does a fallback
implementation of round().

11 years ago3.15.10
Matthias Clasen [Tue, 3 Mar 2015 00:46:43 +0000 (19:46 -0500)]
3.15.10

11 years agoAvoid stray output from configure
Matthias Clasen [Tue, 3 Mar 2015 01:57:29 +0000 (20:57 -0500)]
Avoid stray output from configure

The new xgettext check was leaving a messages.po file behind.

11 years agoFix 7c4bf742e82d812ecc5b0c3280db86d2689eb093
Matthias Clasen [Tue, 3 Mar 2015 01:16:25 +0000 (20:16 -0500)]
Fix 7c4bf742e82d812ecc5b0c3280db86d2689eb093

The objects-finalize test constructs gestures with NULL as
a widget. The recent addition of weak references was not
ready for that.

11 years agogears: Update to slightly more modern OpenGL
Emmanuele Bassi [Tue, 3 Mar 2015 00:06:35 +0000 (00:06 +0000)]
gears: Update to slightly more modern OpenGL

Instead of using glxgears, which still uses OpenGL 2.1 and the fixed
pipeline, we use a slightly modified es2gears, OpenGL 3.2, and the
programmable pipeline.

11 years agofile chooser: Avoid animated scrolling for editing
Matthias Clasen [Mon, 2 Mar 2015 21:22:56 +0000 (16:22 -0500)]
file chooser: Avoid animated scrolling for editing

Avoid scrolling animation when scrolling to where we want
to insert the new folder, since adding the entry doesn't
do the right thing if the treeview is still scrolling.

An alternative would be to wait for the animated scrolling
to reach its target before starting the editing, but this
is easier.

https://bugzilla.gnome.org/show_bug.cgi?id=729366

11 years agofile chooser: Avoid triggering assertions
Matthias Clasen [Mon, 2 Mar 2015 20:53:35 +0000 (15:53 -0500)]
file chooser: Avoid triggering assertions

cairo surfaces are boxed types, so don't try to set them
with g_value_set_object().

11 years agofile chooser: Avoid warnings from the location column
Matthias Clasen [Mon, 2 Mar 2015 20:38:29 +0000 (15:38 -0500)]
file chooser: Avoid warnings from the location column

Avoid criticals that would come out of this code if file is / or NULL.

11 years agoUpdated French translation
Claude Paroz [Mon, 2 Mar 2015 18:32:07 +0000 (18:32 +0000)]
Updated French translation

11 years agox11: Store last axes from device
Carlos Garnacho [Mon, 2 Mar 2015 17:19:16 +0000 (18:19 +0100)]
x11: Store last axes from device

And use these for the missing axes if the valuator mask is incomplete.
This used to work fine on tablets because the Wacom driver ensures all
valuators are sent, which is not true if using the evdev driver.

https://bugzilla.gnome.org/show_bug.cgi?id=703610

11 years agoscrolledwindow: Cancel kinetic/overshoot animation on captured scroll events
Carlos Garnacho [Mon, 2 Mar 2015 16:01:21 +0000 (17:01 +0100)]
scrolledwindow: Cancel kinetic/overshoot animation on captured scroll events

This ensures the animation is cancelled if the child widget happens to
GDK_EVENT_STOP scroll events.

https://bugzilla.gnome.org/show_bug.cgi?id=745315

11 years agoUpdates
Matthias Clasen [Mon, 2 Mar 2015 16:11:24 +0000 (11:11 -0500)]
Updates

11 years agoscrolledwindow: Add motion mask to the widget window
Carlos Garnacho [Mon, 2 Mar 2015 14:31:11 +0000 (15:31 +0100)]
scrolledwindow: Add motion mask to the widget window

This is not specified specifically by the attached controllers, so let
the scrolledwindow set the mask, as motion events with no buttons pressed
are interesting to it.

https://bugzilla.gnome.org/show_bug.cgi?id=745344

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 2 Mar 2015 13:39:40 +0000 (15:39 +0200)]
Updated Hebrew translation

11 years agowayland: Delay wl_subsurface interface creation until the window is shown
Carlos Garnacho [Wed, 25 Feb 2015 14:59:26 +0000 (15:59 +0100)]
wayland: Delay wl_subsurface interface creation until the window is shown

It isn't really necessary anytime before, so just make sure it's there only
when the window is visible.

https://bugzilla.gnome.org/show_bug.cgi?id=743427

11 years agogtkwindow: Do not show subsurface windows for hidden popover widgets
Carlos Garnacho [Wed, 25 Feb 2015 14:52:49 +0000 (15:52 +0100)]
gtkwindow: Do not show subsurface windows for hidden popover widgets

This is really just necessary when we have a visible widget, otherwise
the window would temporarily linger with odd size and surface.

https://bugzilla.gnome.org/show_bug.cgi?id=743427

11 years agowayland: Thaw the clock if we hide a GdkWindow mid-frame
Carlos Garnacho [Wed, 25 Feb 2015 13:46:54 +0000 (14:46 +0100)]
wayland: Thaw the clock if we hide a GdkWindow mid-frame

When a window is hidden, its surface and all its roles are destroyed,
if this happens when we already issued a wl_surface_commit and are
awaiting for a frame callback, the clock will remain frozen for the
next time the window is shown.

To avoid this, keep track of the wl_surface_frame() calls issued,
and ensure the clock is thawed after hiding. If we happen to receive
the frame callback, it is just ignored.

https://bugzilla.gnome.org/show_bug.cgi?id=743427

11 years agogtkwindow: Move window dragging to a standalone drag gesture
Carlos Garnacho [Wed, 25 Feb 2015 19:34:12 +0000 (20:34 +0100)]
gtkwindow: Move window dragging to a standalone drag gesture

The gesture is hooked to the capture phase, so it works for buttons in
header bars and whatnot. In order to be friendly to the widget it is
capturing events from, an ugly hack is in place to avoid capturing
events when the target widget has a gesture that would consume motion
events.

11 years agogtkmenubutton: Popup menu/popover on GtkButton:clicked
Carlos Garnacho [Wed, 25 Feb 2015 19:31:09 +0000 (20:31 +0100)]
gtkmenubutton: Popup menu/popover on GtkButton:clicked

This happens on button release, which is more convenient if the gesture
can be consumed by something else (eg. window dragging), and already behaves
correctly wrt cancelled gestures, broken grabs, etc.

This also allows us to unify pointer and keyboard behavior, popping up the
menu widget in a single place.

11 years agogesture: On cancel, remove touchpoint before checking the recognized state
Carlos Garnacho [Wed, 25 Feb 2015 19:30:11 +0000 (20:30 +0100)]
gesture: On cancel, remove touchpoint before checking the recognized state

Otherwise the touch being removed doesn't account in recognition.

11 years agobutton: Ensure the button is "left" when a gesture is cancelled
Carlos Garnacho [Wed, 25 Feb 2015 19:29:22 +0000 (20:29 +0100)]
button: Ensure the button is "left" when a gesture is cancelled

This prevents from stale widget states if the gesture happens to be
cancelled mid-press.

11 years agoeventcontroller: Chain up on constructed
Debarshi Ray [Sun, 1 Mar 2015 12:35:02 +0000 (13:35 +0100)]
eventcontroller: Chain up on constructed

https://bugzilla.gnome.org/show_bug.cgi?id=745225

11 years agoeventcontroller, widget: Don't crash if destroyed before the other
Debarshi Ray [Sun, 1 Mar 2015 12:28:21 +0000 (13:28 +0100)]
eventcontroller, widget: Don't crash if destroyed before the other

There are two scenarios. A widget sub-class owns a GtkEventController
and passes itself to it, or a controller owned by something else is
passed a widget.

In the second case, if the widget is destroyed before the controller,
we will have a crash when destructing the controller because we will
be accessing invalid memory. Adding a weak reference on the widget
addresses that problem.

This leads to a crash in the first case. When the widget is getting
destroyed, it will drop the reference to its own controller. The
controller will skip touching the widget because the weak reference
would have turned it to NULL. However, when the widget sub-class chains
up to GtkWidget it will try to free all the controllers in its list.
Unfortunately, all these controllers have already been destroyed. So
we need to guard against this too.

https://bugzilla.gnome.org/show_bug.cgi?id=745225

11 years agogtk_label_set_yalign(): Fix xalign/yalign typo in parameter name.
Murray Cumming [Mon, 2 Mar 2015 09:58:23 +0000 (10:58 +0100)]
gtk_label_set_yalign(): Fix xalign/yalign typo in parameter name.

11 years agoprinting: Set printer state correctly
Marek Kasik [Fri, 27 Feb 2015 15:48:40 +0000 (16:48 +0100)]
printing: Set printer state correctly

Consider NULL printer state message as empty too.
Printer state IPP_PRINTER_STOPPED can be considered as paused state.

https://bugzilla.gnome.org/show_bug.cgi?id=743323

11 years agogtk_misc_set_alignment(): Improve the deprecation documenation.
Murray Cumming [Mon, 2 Mar 2015 08:45:57 +0000 (09:45 +0100)]
gtk_misc_set_alignment(): Improve the deprecation documenation.

To link to GtkWidget.halign/valign and to mention
GtkLabel.xalign/yalign.

11 years agogdkglcontext-win32: fix variable names in GDK_NOTE
Ryan Lortie [Mon, 2 Mar 2015 02:35:53 +0000 (21:35 -0500)]
gdkglcontext-win32: fix variable names in GDK_NOTE

These probably weren't caught because GDK_NOTE was disabled when the
change was tested.

https://bugzilla.gnome.org/show_bug.cgi?id=745400

11 years agogdkglcontext-win32: remove unused variables
Ryan Lortie [Mon, 2 Mar 2015 02:35:34 +0000 (21:35 -0500)]
gdkglcontext-win32: remove unused variables

https://bugzilla.gnome.org/show_bug.cgi?id=745400

11 years agoUpdated Czech translation
Marek Černocký [Sun, 1 Mar 2015 17:54:56 +0000 (18:54 +0100)]
Updated Czech translation

11 years agosearchenginetracker: Unify fts/non-fts query
Carlos Garnacho [Sat, 28 Feb 2015 21:59:36 +0000 (22:59 +0100)]
searchenginetracker: Unify fts/non-fts query

This makes sure we use location_uri for both types of query, and the fts
query has been made more similar to the one used by nautilus.

11 years agotracker: Turn on fts
Matthias Clasen [Sat, 28 Feb 2015 21:42:39 +0000 (16:42 -0500)]
tracker: Turn on fts

We want to match what nautilus does, and the non-fts query
ignores the location, which yields somewhat broken UI in
the file chooser.

11 years agoFormatting fixes
Matthias Clasen [Sat, 28 Feb 2015 21:13:18 +0000 (16:13 -0500)]
Formatting fixes

11 years agofile chooser: Don't start search too eagerly
Matthias Clasen [Sat, 28 Feb 2015 21:09:28 +0000 (16:09 -0500)]
file chooser: Don't start search too eagerly

We were trying to start search when the user types anything,
but this is annoying more often than helpful, and interferes
with the location entry. So, stick with explicitly enabled
search (via the search button or Alt-S) for now.

11 years agoUpdated Slovak translation
Dušan Kazik [Sat, 28 Feb 2015 20:21:13 +0000 (20:21 +0000)]
Updated Slovak translation

11 years agoDo not return NULL AtkStateSet
Peter Bloomfield [Sat, 28 Feb 2015 13:59:12 +0000 (08:59 -0500)]
Do not return NULL AtkStateSet

https://bugzilla.gnome.org/show_bug.cgi?id=741511

11 years agoUpdated translation for Afrikaans (af)
Friedel Wolff [Sat, 28 Feb 2015 17:32:23 +0000 (19:32 +0200)]
Updated translation for Afrikaans (af)

11 years agoUpdated Vietnamese translation
Trần Ngọc Quân [Sat, 28 Feb 2015 07:23:14 +0000 (14:23 +0700)]
Updated Vietnamese translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
11 years agowayland: Add debug spew
Matthias Clasen [Sat, 28 Feb 2015 05:15:13 +0000 (00:15 -0500)]
wayland: Add debug spew

11 years agowayland: Formatting fixes
Matthias Clasen [Sat, 28 Feb 2015 03:28:28 +0000 (22:28 -0500)]
wayland: Formatting fixes

11 years agowayland: Apply maximized and fullscreen state
Matthias Clasen [Fri, 27 Feb 2015 23:18:00 +0000 (23:18 +0000)]
wayland: Apply maximized and fullscreen state

We were just throwing the request away if the app asks to
fullscreen or maximize a window before it has been mapped.
This is something the GdkWindow API explicitly supports,
so make it work by saving the state until the surface exists.

This fixes things under weston. There are bugs in mutter
that keep this from working correctly with gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=745303

11 years agowayland: Drop some pointless lines
Matthias Clasen [Fri, 27 Feb 2015 23:15:37 +0000 (18:15 -0500)]
wayland: Drop some pointless lines

No need for these parameter checks, really.

11 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 27 Feb 2015 22:02:25 +0000 (00:02 +0200)]
Updated Lithuanian translation

11 years agoFix a typo
Matthias Clasen [Fri, 27 Feb 2015 22:00:08 +0000 (17:00 -0500)]
Fix a typo

Follow-up fix for commit 7cee6c5cc6f35d9ed453f943686c0b21e86b4a3e.

11 years agowayland: Don't use g_error() on connection lost
Olivier Fourdan [Fri, 27 Feb 2015 12:06:29 +0000 (13:06 +0100)]
wayland: Don't use g_error() on connection lost

When the Wayland compositor vanishes, all applications connected will
receive a SIGPIPE as soon as they try to use wl_display_dispatch().

Do not use g_error() to terminate the applications when this occurs,
g_error() means an error in the application while here it's not truly
the case.

Use g_warning() and exit() instead.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=745289

11 years agoUpdated Hungarian translation
Balázs Úr [Fri, 27 Feb 2015 21:18:14 +0000 (21:18 +0000)]
Updated Hungarian translation

11 years agoUpdated Hungarian translation
Balázs Úr [Fri, 27 Feb 2015 21:13:55 +0000 (21:13 +0000)]
Updated Hungarian translation

11 years agogdk: Use a better error message
Emmanuele Bassi [Fri, 27 Feb 2015 21:00:16 +0000 (21:00 +0000)]
gdk: Use a better error message

Having "Assertion failed: success" on the console is not going to help
anyone.

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Fri, 27 Feb 2015 18:46:55 +0000 (19:46 +0100)]
Updated POTFILES.in and POTFILES.skip

11 years agoUpdated Polish translation
Piotr Drąg [Fri, 27 Feb 2015 18:37:17 +0000 (19:37 +0100)]
Updated Polish translation

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Fri, 27 Feb 2015 14:47:30 +0000 (16:47 +0200)]
Updated Hebrew translation

11 years agoGtkListBoxRow: add g_return_if_fail to grab_focus, don't crash
Rafal Luzynski [Thu, 26 Feb 2015 01:15:18 +0000 (02:15 +0100)]
GtkListBoxRow: add g_return_if_fail to grab_focus, don't crash

Although gtk_list_box_row_grab_focus() is not a public function
it can be easily called by gtk_widget_grab_focus() with a row argument
which has been removed from the list box and has box == NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=744879

11 years agoUpdated Greek translation
Efstathios Iosifidis [Fri, 27 Feb 2015 11:20:42 +0000 (11:20 +0000)]
Updated Greek translation

11 years agofile chooser dialog: Prevent uneven button heights
Matthias Clasen [Fri, 27 Feb 2015 02:15:19 +0000 (21:15 -0500)]
file chooser dialog: Prevent uneven button heights

The height of the text buttons depends on the font height,
whereas the search button has a fixed-size icon in it...
Prevent unevent heights by putting them all in a size group.

https://bugzilla.gnome.org/show_bug.cgi?id=745263

11 years agoapp chooser dialog: Prevent uneven button heights
Matthias Clasen [Fri, 27 Feb 2015 01:55:54 +0000 (20:55 -0500)]
app chooser dialog: Prevent uneven button heights

The height of the text buttons depends on the font height,
whereas the search button has a fixed-size icon in it...
Prevent unevent heights by putting them all in a size group.

11 years agoAdd a configure check for new enough gettext
Matthias Clasen [Fri, 27 Feb 2015 00:00:24 +0000 (19:00 -0500)]
Add a configure check for new enough gettext

Check that xgettext understands glade files.

11 years agoStop building extract-strings
Matthias Clasen [Sun, 1 Feb 2015 19:37:20 +0000 (14:37 -0500)]
Stop building extract-strings

It is no longer needed.

11 years agoStop using extract-headers
Matthias Clasen [Sun, 1 Feb 2015 19:34:37 +0000 (14:34 -0500)]
Stop using extract-headers

Since 0.18.3, xgettext can extract strings from ui files.

11 years agoUpdated Slovak translation
Dušan Kazik [Thu, 26 Feb 2015 11:59:18 +0000 (11:59 +0000)]
Updated Slovak translation

11 years agoUpdated Greek translation
Efstathios Iosifidis [Thu, 26 Feb 2015 11:23:48 +0000 (11:23 +0000)]
Updated Greek translation

11 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Thu, 26 Feb 2015 07:11:37 +0000 (07:11 +0000)]
Updated Kazakh translation

11 years agoprinting: Always get details of Avahi printers via IPP
Marek Kasik [Fri, 20 Feb 2015 10:11:01 +0000 (11:11 +0100)]
printing: Always get details of Avahi printers via IPP

Request details of Avahi browsed printers even when
we've got their PPDs already. Some options are not
present in PPD.

https://bugzilla.gnome.org/show_bug.cgi?id=743323

11 years agoprinting: Get covers for each printer individually
Marek Kasik [Wed, 25 Feb 2015 14:54:36 +0000 (15:54 +0100)]
printing: Get covers for each printer individually

Since we combine Avahi browsed printers and
printers of local CUPS in one backend we need to
get covers for each printer separately.

https://bugzilla.gnome.org/show_bug.cgi?id=743323

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 25 Feb 2015 11:34:02 +0000 (12:34 +0100)]
Updated Spanish translation

11 years ago3.15.9
Matthias Clasen [Wed, 25 Feb 2015 01:38:33 +0000 (20:38 -0500)]
3.15.9

11 years agowayland: Don't allocate a full size SHM buffer when drawing using OpenGL
Jonas Ådahl [Tue, 24 Feb 2015 10:10:07 +0000 (18:10 +0800)]
wayland: Don't allocate a full size SHM buffer when drawing using OpenGL

Before this patch, we'd always allocate a full size SHM buffer via
the wl_shm_pool, even though it would never be used. Instead allocate a
logical 1x1 cairo image surface.

https://bugzilla.gnome.org/show_bug.cgi?id=745076

11 years agowayland: Scale up wl_egl_window according to window scale
Jonas Ådahl [Tue, 24 Feb 2015 09:20:22 +0000 (17:20 +0800)]
wayland: Scale up wl_egl_window according to window scale

In order to support window scales for EGL windows, resize the
wl_egl_window to the window dimension multiplied with the window scale,
just as with SHM window buffers.

https://bugzilla.gnome.org/show_bug.cgi?id=745076

11 years agowayland: Properly support changing of surface scale
Jonas Ådahl [Tue, 24 Feb 2015 08:11:48 +0000 (16:11 +0800)]
wayland: Properly support changing of surface scale

When the preferred surface scale changes, for example when entering a
wl_output with a higher scale than any previous entered output, recreate
the shm surface and redraw the window content with the new window scale.

Before this patch, the internal scale would be changed, but the shm
surface would not be recreated given the new scale, i.e. we'd attach a
buffer for a different scale than wl_surface.set_scale specified.

https://bugzilla.gnome.org/show_bug.cgi?id=745076

11 years agowayland: Don't ever try to set surface buffer scale when not supported
Jonas Ådahl [Tue, 24 Feb 2015 07:00:39 +0000 (15:00 +0800)]
wayland: Don't ever try to set surface buffer scale when not supported

If the compositor is too old for handling surface buffer scales, never
tyr to set change it. This will effectively always leave it to its
initial state, i.e. 1.

https://bugzilla.gnome.org/show_bug.cgi?id=745076

11 years agogdkcairo: Bail if surface is in error
Benjamin Otte [Fri, 20 Feb 2015 23:03:49 +0000 (00:03 +0100)]
gdkcairo: Bail if surface is in error

Don't try to paint onto an error surface. This happens for example when
gdk_cairo_set_source_pixbuf() is called with a pixbuf that is too big
for Cairo to handle.

Spotted by Christian Boxdörfer

11 years agocss: Fix _gtk_bitmask_subtract()
Benjamin Otte [Tue, 24 Feb 2015 23:35:45 +0000 (00:35 +0100)]
css: Fix _gtk_bitmask_subtract()

We were doing the wrong thing *and* writing uninitialized memory while
doing so. BAD.

Also added tests exposing these.

https://bugzilla.redhat.com/show_bug.cgi?id=1185585

11 years agoUpdated Galician translations
Fran Dieguez [Tue, 24 Feb 2015 21:43:36 +0000 (22:43 +0100)]
Updated Galician translations

11 years agoUpdated POTFILES.in
Piotr Drąg [Tue, 24 Feb 2015 21:09:30 +0000 (22:09 +0100)]
Updated POTFILES.in

11 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 24 Feb 2015 18:21:02 +0000 (19:21 +0100)]
Updated Spanish translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 24 Feb 2015 18:18:22 +0000 (19:18 +0100)]
Updated Slovenian translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 24 Feb 2015 18:04:49 +0000 (19:04 +0100)]
Updated Slovenian translation

11 years agoUpdated Hebrew properties translation
Yosef Or Boczko [Tue, 24 Feb 2015 17:31:13 +0000 (19:31 +0200)]
Updated Hebrew properties translation

11 years agoscrolledwindow: Only start fade animation on "visible" scrollbars
Carlos Garnacho [Tue, 24 Feb 2015 13:52:40 +0000 (14:52 +0100)]
scrolledwindow: Only start fade animation on "visible" scrollbars

If a scrollbar is not shown (because of policies, or because it isn't
necessary), it doesn't make sense to start fade animations on its window
on captured motion events.

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Tue, 24 Feb 2015 13:05:00 +0000 (15:05 +0200)]
Updated Hebrew translation

11 years agoFix the previous commit
Matthias Clasen [Tue, 24 Feb 2015 03:25:11 +0000 (22:25 -0500)]
Fix the previous commit

The C_() macro only takes string literals.
Use g_dpgettext2() instead

11 years agoMake gtk-im-context-none work
Matthias Clasen [Tue, 24 Feb 2015 03:00:55 +0000 (22:00 -0500)]
Make gtk-im-context-none work

This was added a few years ago, as a way to have _no_ im context
at all. But it didn't actually work. Make it work, and streamline
the handling of none by moving it all to gtkimmodule.c.

As part of this, add context to the translated names of all
im modules we ship.

11 years agoicontheme: allow directories with mtime 0
Daniel Drake [Mon, 23 Feb 2015 20:49:08 +0000 (14:49 -0600)]
icontheme: allow directories with mtime 0

In order to provide a constant mtime between OS build and deploy time,
while also maintaining a hardlink content-addressed model independent of
timestamps, ostree sets all mtimes to 0.

The icon cache code currently ignores directories with mtime 0, assuming
they don't exist.

Track directory existence in a more precise way.

https://bugzilla.gnome.org/show_bug.cgi?id=745052

11 years agogetting-started: move Drawing section to bottom.
Bastian Ilsø [Thu, 19 Feb 2015 15:07:09 +0000 (16:07 +0100)]
getting-started: move Drawing section to bottom.

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Feb 2015 18:15:08 +0000 (19:15 +0100)]
Updated Spanish translation

11 years agoicontheme: use desired size instead of negative for DIR_UNTHEMED SVGs
Cosimo Cecchi [Mon, 23 Feb 2015 01:53:18 +0000 (17:53 -0800)]
icontheme: use desired size instead of negative for DIR_UNTHEMED SVGs

When loading SVGs from ICON_THEME_DIR_UNTHEMED GtkIconInfos,
such as those created for a GLoadableIcon, the size of the pixbuf to
load is set as a product of icon_info->scale.
But a few lines above, icon_info->scale is set to -1 for
ICON_THEME_DIR_UNTHEMED GtkIconInfos, so we'll end up always passing a
negative size to the GdkPixbuf loader, which is interpreted as the
nominal size of the image file.
Instead load the SVG at the desired scaled size in that case.

This fixes blurry icon in the notification panel in gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=744991

11 years agoicontheme: fill correct information when loading GResource-backed GIcons
Cosimo Cecchi [Mon, 23 Feb 2015 01:49:55 +0000 (17:49 -0800)]
icontheme: fill correct information when loading GResource-backed GIcons

When loading a GResource-backed GFileIcon into a GtkIconInfo we
currently fail to populate the is_resource private field.
Also, since is_svg is set by looking at the filename, and
g_file_get_path() returns NULL for a GResourceFile, is_svg was always
FALSE.

https://bugzilla.gnome.org/show_bug.cgi?id=744991

11 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 23 Feb 2015 16:41:30 +0000 (17:41 +0100)]
Updated POTFILES.in

11 years agoGetting-started: port drawing.c to GtkApplication
Bastian Ilsø [Thu, 19 Feb 2015 14:53:35 +0000 (15:53 +0100)]
Getting-started: port drawing.c to GtkApplication

11 years agorange: Make steppers use smooth autoscrolling
Matthias Clasen [Mon, 23 Feb 2015 01:02:02 +0000 (20:02 -0500)]
range: Make steppers use smooth autoscrolling

This makes them work much nicer than the old timer-based
implementation.

11 years agorange: Make zoom scrolling less sensitive
Matthias Clasen [Sun, 22 Feb 2015 22:57:23 +0000 (17:57 -0500)]
range: Make zoom scrolling less sensitive

Use the new long press delay factor to make the zoom
scrolling less easy to trigger accidentally.

11 years agolong press: Add a delay-factor property
Matthias Clasen [Sun, 22 Feb 2015 22:48:39 +0000 (17:48 -0500)]
long press: Add a delay-factor property

Add a way to set a delay factor that can be used
to make the long press more or less sensitive.
Making this a factor instead of exposing the delay
itself preserves the value of the setting as an
overall 'slow down long press' setting.

11 years agozoom scrolling: Improve the previous fix
Matthias Clasen [Mon, 23 Feb 2015 12:28:40 +0000 (07:28 -0500)]
zoom scrolling: Improve the previous fix

As Sebastian pointed out, just resetting the initial slider
position was an incomplete fix, because it does not cause the
delta to be recomputed, which is important in this scenario,
because you've likely travelled some distance over the slider
before the long press kicks in.
Instead, explicitly record both the slider position and the
delta.

11 years agozoom scrolling: avoid 'jumping back'
Matthias Clasen [Mon, 23 Feb 2015 11:42:17 +0000 (06:42 -0500)]
zoom scrolling: avoid 'jumping back'

We record the starting position on button press, but only
start the zoom mode when the long press timeout kicks in.
Depending on circumstances, this can cause a noticable jump.

Avoid this by resetting the recorded starting position after
the long press timeout. Suggested by Sebastian Keller.

11 years agoUpdated Chinese (Taiwan) translation
Chao-Hsiung Liao [Mon, 23 Feb 2015 07:32:08 +0000 (07:32 +0000)]
Updated Chinese (Taiwan) translation

11 years agoUpdated Chinese (Taiwan) translation
Chao-Hsiung Liao [Mon, 23 Feb 2015 07:30:34 +0000 (07:30 +0000)]
Updated Chinese (Taiwan) translation

11 years agoSilence a compiler warning
Matthias Clasen [Sun, 22 Feb 2015 22:01:27 +0000 (17:01 -0500)]
Silence a compiler warning

11 years agoUpdated Hungarian translation
Balázs Úr [Sun, 22 Feb 2015 21:19:26 +0000 (21:19 +0000)]
Updated Hungarian translation

11 years agoicon browser: Set up dnd from the detail popup
Matthias Clasen [Sun, 22 Feb 2015 19:42:26 +0000 (14:42 -0500)]
icon browser: Set up dnd from the detail popup

Allow dragging the various icon sizes as images.